<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel='stylesheet' href='/stylesheets/common.css' />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理</title>
    <style>
       body{
           background: #1c1c22;
        }
        ul{
            list-style: none;
            cursor: pointer;
        }
        a,span{
            color: #fff;
        }

       .nav-left h3{
           padding: 40px;

       }
       .nav-left h3{
            padding: 40px;
       }
       .nav-left > ul{
            padding: 0 16px;
       }
       .nav-left > ul > li{
            padding: 20px 0;
            border-top: 2px solid #37383d;
       }
       .nav-left > ul > li:first-child{
            border-top: none;
       }

       .menu{
            position: relative;
            margin: 0 20px;
            line-height: 40px;
            color: #fff;
            border-radius: 24px;
       }
       .menu.active{
            background: #047bfb;
       }
       .menu > img:first-child{
            margin:-2px 18px;
       }
       .menu > img:last-child{
            position: absolute;
            right: 24px;
            top: 50%;
            margin-top: -4px;
       }
       .nav-left > ul > li > ul > li{
            margin-top: 20px;
       }
       .out{
            position: fixed;
            bottom: 16px;
            width: 80%;
            left: 50%;
            transform: translateX(-50%);
            line-height: 40px;
            text-align: center;
            color: #fff;
            background-color: #047bfb;
            border-radius: 24px;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="nav-left">
        <h3>
            <img src="/images/pic_logo_nav.png" alt="">
        </h3>
        <ul>
            <li>
                <div class="menu active">
                    <img src="/images/icon_shouye.png" alt="">
                    <span>首页</span>
                    <img src="/images/icon_you_s.png" alt="" class="down">
                </div>
                <ul> 
                    <li class="menu">
                        <img src="/images/icon_banner.png" alt="">
                        <a href="/bannerList" target="right">banner图</a>
                    </li>
                    <li class="menu">
                        <img src="/images/icon_kecheng.png" alt="">
                        <a href="#">课程体系</a>
                    </li>
                    <li class="menu">
                        <img src="/images/icon_class.png" alt="">
                        <a href="#">开班计划</a>
                    </li>
                    <li class="menu">
                        <img src="/images/icon_qiye.png" alt="">
                        <a href="#">企业级项目</a>
                    </li>
                </ul> 
            </li>
            
            <li>
                <div class="menu">
                    <img src="/images/icon_jiuye.png" alt="">
                    <span>成功的你</span>
                    <img src="/images/icon_you_s.png" class="down"  alt="">
                </div>
            </li>
            
            <li>
                <div class="menu">
                    <img src="/images/icon_women.png" alt="">
                    <span>关于我们</span>
                    <img src="/images/icon_you_s.png" class="down"  alt="">
                </div>
            </li>
            

        </ul>

        <div class="out">
            退出登录
        </div>
    </div>

 <script src="/javascripts/jquery.js"></script>
    <script>
        $(function(){
            $('.nav-left > ul > li').click(function(){                
                $(this).siblings().find('div.menu').removeClass('active');
                $(this).find('div.menu').addClass('active');
                //更换箭头
                $(this).siblings().find('.down').attr('src','/images/icon_you_s.png');
                $(this).find('.down').attr('src','/images/icon_down.png');
                
                //展开收起
                $(this).siblings().find('ul').slideUp(200);
                $(this).find('ul').slideDown(200);
            })
        })

    </script>
</body>

</html>